<template>
  <div id="map">
    <MapView :height="height" :longitude="longitude" :latitude="latitude"></MapView>
    <div class="search">
      <form action="javascript:;">
        门锁名称：<input type="text" class="search_input">
        <input type="submit" value="查询" class="search_submit" @click="search">
      </form>
    </div>
  </div>
</template>

<script>
import MapView from './Map.vue';
export default {
  data() {
    return {
      height:750,
      longitude: 113.35,
      latitude: 23.12
    }
  },
  components: {
    MapView
  },
  methods: {
    search() {
      alert('查询中...')
    }
  },
  mounted() {
    
  }
}

</script>

<style scoped>
#map {
  position: relative;
  height:100%;
}

form {
  position: absolute;
  left: 50px;
  top: 50px;
  font-family: "serif";
  padding: 10px 20px;
  background: #fff;
  opacity: 0.8;
}

.search_input {
  padding: 3px 5px;
  border-radius: 5px;
  outline: none;
}

.search_submit {
  padding: 2px 5px;
  border-radius: 5px;
  outline: none;
}
</style>



